<?php
//echo '<pre>';
//print_r($_SESSION);
//echo '</pre>';
  if(!isset($_SESSION['id']) || empty($_SESSION['id'])) {
    header('location:'.SITE_PATH);
    exit;
  }
?>
<div class="header_container">
  <div class="header_left">
    <ul class="header">
      <li><a href="">Home</a></li>
      <li><a href="">Add New User</a></li>
      <li><a href="<?=SITE_PATH?>/display_users">Show All users</a></li>
    </ul>
  </div>
  <div class="header_right">
    <ul class="header">
      <li>Welcome, <em><?=$_SESSION['uname']?></em></li>
      <li><a href="<?=SITE_PATH?>/logout.php">Logout</a></li>

    </ul>
  </div>


</div>



<style type="text/css">

  .header_container{
    float:left;
    width: 100%;
  }

  .header_left{
    float:left;
    width: 60%;
  }

  .header_right{
    float:right;
    width: 40%;
  }
  .header{
    list-style:none;
/*    border:1px solid red;*/
    padding:0px;
    float:left;
  }
  .header li{
/*    border:1px solid green;*/
    float:left;
    margin-left:1px;
    padding:5px;
    color:white;
    background-color:black;
    font-family:Cursive;
  }
  .header li a{
    color:white;
    text-decoration:none;
  }
  .header li:hover{
    background-color:gray;
  }
</style>
